//
//  authListModel.m
//  PropertyManager
//
//  Created by TNG on 2018/10/8.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "authListModel.h"

@implementation authListModel 

+(instancetype)modelWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}

-(instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)encodeWithCoder:(NSCoder *)aCoder;
{
    [aCoder encodeObject:self.bpmStatus forKey:@"bpmStatus"];
    [aCoder encodeObject:self.corpname forKey:@"corpname"];
    [aCoder encodeObject:self.createBy forKey:@"createBy"];
    [aCoder encodeObject:self.createDate forKey:@"createDate"];
    [aCoder encodeObject:self.createName forKey:@"createName"];
    [aCoder encodeObject:self.cusphonenum forKey:@"cusphonenum"];
    [aCoder encodeObject:self.customername forKey:@"customername"];
    [aCoder encodeObject:self.fgsname forKey:@"fgsname"];
    [aCoder encodeObject:self.userId forKey:@"id"];
    [aCoder encodeObject:self.idcardnum forKey:@"idcardnum"];
    [aCoder encodeObject:self.pkCustomerid forKey:@"pkCustomerid"];
    [aCoder encodeObject:self.servicecentre forKey:@"servicecentre"];
    [aCoder encodeObject:self.sysCompanyCode forKey:@"sysCompanyCode"];
    [aCoder encodeObject:self.sysOrgCode forKey:@"sysOrgCode"];
    [aCoder encodeObject:self.updateBy forKey:@"updateBy"];
    [aCoder encodeObject:self.updateDate forKey:@"updateDate"];
    [aCoder encodeObject:self.updateName forKey:@"updateName"];
    [aCoder encodeObject:self.vlinkman forKey:@"vlinkman"];
    [aCoder encodeObject:self.pkManagementsecid forKey:@"pkManagementsecid"];
    [aCoder encodeObject:self.pkCorp forKey:@"pkCorp"];
}

- (nonnull id)copyWithZone:(nullable NSZone *)zone {
    return [self copyWithZone:zone];
}

- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.bpmStatus = [aDecoder decodeObjectForKey:@"bpmStatus"];
        self.corpname = [aDecoder decodeObjectForKey:@"corpname"];
        self.createBy = [aDecoder decodeObjectForKey:@"createBy"];
        self.createDate = [aDecoder decodeObjectForKey:@"createDate"];
        self.createName = [aDecoder decodeObjectForKey:@"createName"];
        self.cusphonenum = [aDecoder decodeObjectForKey:@"cusphonenum"];
        self.customername = [aDecoder decodeObjectForKey:@"customername"];
        self.fgsname = [aDecoder decodeObjectForKey:@"fgsname"];
        self.userId = [aDecoder decodeObjectForKey:@"id"];
        self.idcardnum = [aDecoder decodeObjectForKey:@"idcardnum"];
        self.pkCustomerid = [aDecoder decodeObjectForKey:@"pkCustomerid"];
        self.servicecentre = [aDecoder decodeObjectForKey:@"servicecentre"];
        self.sysCompanyCode = [aDecoder decodeObjectForKey:@"sysCompanyCode"];
        self.sysOrgCode = [aDecoder decodeObjectForKey:@"sysOrgCode"];
        self.updateBy = [aDecoder decodeObjectForKey:@"updateBy"];
        self.updateDate = [aDecoder decodeObjectForKey:@"updateDate"];
        self.updateName = [aDecoder decodeObjectForKey:@"updateName"];
        self.vlinkman = [aDecoder decodeObjectForKey:@"vlinkman"];
        self.pkManagementsecid = [aDecoder decodeObjectForKey:@"pkManagementsecid"];
        self.pkCorp = [aDecoder decodeObjectForKey:@"pkCorp"];
    }
    return self;
}

@end
